package cn.geminis.lowcode.compiler.code;

import com.sun.source.tree.StatementTree;
import lombok.NoArgsConstructor;
import lombok.NonNull;

import javax.lang.model.element.Element;

/**
 * @author puddi
 */
@NoArgsConstructor
public abstract class AbstractStatement<T extends StatementTree> extends AbstractCode<T, Element> {

    protected AbstractStatement(@NonNull Element element) {
        super(element);
    }

    protected AbstractStatement(@NonNull T tree) {
        super(tree);
    }

    @Override
    protected Element createJdkElement() {
        throw new UnsupportedOperationException();
    }

}
